/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2023.
 * Description: update nfsd stats
 * Author: Pang LiYuan
 * Create: 2023-09-15
 */
#ifdef CONFIG_RTOS_FS_NFS_DEBUG
void nfsdstats_updata_debufinfo(int type, int error)
{
	if (error == nfserr_stale) {
		if (type == FILEID_ROOT)
			nfsdstats.fh_stale_dentrynull1++;
		else
			nfsdstats.fh_stale_dentrynull2++;
	}
}

void nfsdstats_update_stale(void)
{
	nfsdstats.fh_stale_exp++;
}
#else
void nfsdstats_updata_debufinfo(int type, int error)
{
}
void nfsdstats_update_stale(void)
{
}
#endif